﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Windows.Controls.Ribbon;
using BookManagementWpfApplication.Views.UserControl;

namespace BookManagementWpfApplication
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : RibbonWindow
    {
        public MainWindow()
        {
            InitializeComponent();
            PageSwitch.mainWindow = this;
            PageSwitch.Switch(new ListBookView());                       
        }

        private void ListBookButton_Click(object sender, RoutedEventArgs e)
        {
            PageSwitch.Switch(new ListBookView());
        }

        private void AddBookButton_Click(object sender, RoutedEventArgs e)
        {
            PageSwitch.Switch(new AddBookView());
        }

        private void BorrowBookButton_Click(object sender, RoutedEventArgs e)
        {
            PageSwitch.Switch(new BorrowBookView());
        }

        private void BorrowNameButton_Click(object sender, RoutedEventArgs e)
        {
            PageSwitch.Switch(new ListBorrowNameView());
        }

        private void StatisticsButton_Click(object sender, RoutedEventArgs e)
        {
            PageSwitch.Switch(new BookStatisticView());
        }        
    }
}
